package com.itheima.service;

import com.itheima.exception.DeleteException;
import com.itheima.pojo.Dept;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface DeptService {
    List<Dept> findAll();
    void deleteById(Integer id) throws DeleteException;
    void add(Dept dept);
    void update(Dept dept);
    Dept findById(Integer id);
}
